<!-- 分割线控件设置面板 -->
<template>
    <el-tabs modelValue="widget" stretch>
        <el-tab-pane :label="`${widget.widgetData.component.title}组件`" name="widget">
            <el-scrollbar>
                <!-- 样式 -->
                <breakline-mode :widget="widget" />

                <!-- 元素可见设置 -->
                <row-element-visible :widget="widget" />
            </el-scrollbar>
        </el-tab-pane>

        <el-tab-pane label="组件样式" name="style">
            <el-scrollbar>
                <el-collapse modelValue="1">
                    <el-collapse-item title="组件设置" name="1">
                        <!-- 大小 -->
                        <row-size :widget="widget" />

                        <!-- 位置 -->
                        <el-divider></el-divider>
                        <row-position :widget="widget" />

                        <el-divider></el-divider>
                        <layout-pane label="颜色">
                            <si-color-picker
                                v-model="widget.widgetData.eles.style['border-bottom-color']"
                                label="分割线"
                                show-alpha
                            />
                        </layout-pane>
                    </el-collapse-item>
                </el-collapse>
            </el-scrollbar>
        </el-tab-pane>
    </el-tabs>
</template>

<script>
import { defineComponent, toRefs } from 'vue'
import LayoutPane from '@/components/setting-pane/layout-pane'
import BreaklineMode from './components/breakline-mode'
import { SiColorPicker } from '@/components/setting-pane/setting-item'
import {
    RowSize,
    RowFontStyle,
    RowPosition,
    RowElementVisible
} from '../../widget-setting-row'
export default defineComponent({
    name: 'BreaklineSetting',
    components: {
        LayoutPane,
        BreaklineMode,
        SiColorPicker,
        RowSize,
        RowFontStyle,
        RowPosition,
        RowElementVisible
    },
    props: {
        widget: {
            type: Object,
            default: () => ({})
        }
    },
    setup(props) {
        const { widget } = toRefs(props)

        return {
            widget
        }
    }
})
</script>
